package com.yjhb.android.sbz.entity;

import com.google.gson.Gson;
import com.jojo.android.zxlib.base.BaseEntity;

import java.util.Date;

/**
 * 创建者 zx
 * 创建时间 2020/11/17 15:08
 */
public class UserInfo extends BaseEntity {

    /**
     * id : 14
     * wxOpenId : oe_Vd6K6iM75S3q8SvWxTSDeycoA
     * phone :
     * nickName : 黑白
     * avatar : https://thirdwx.qlogo.cn/mmopen/vi_32/S3yeC45zKthlXj9pIhfgNcN2Diatjwc05aAmhggRuia4iaqNib0hTaGE1rWIBKliavM1UDsUS4JdJwPHv7h99wlmhzw/132
     * zfbAccount :
     * zfbName :
     * identityNum :
     * realName :
     * vipLevel : 0
     * state : 0
     * createTime : 2020-11-24 10:55:21
     * score :
     * payFlushCount : 0
     * vipFlushCount : 0
     * earnMoney :
     * payMoney :
     * creditMoney :
     * uuid : 39d78fc7-a7f1-4a60-b8a5-3ad56d981b6f
     */

    private String id;
    private String wxOpenId;
    private String phone;
    private String nickName;
    private String avatar;
    private String zfbAccount;
    private String zfbName;
    private String identityNum;
    private String realName;
    private Integer parentId;
    private int vipLevel;
    private int state;
    private Date createTime;
    private int score;
    private int payFlushCount;
    private int vipFlushCount;
    private String earnMoney;
    private String payMoney;
    private String creditMoney;
    private String uuid;
    private String IMSign;
    private int accountType;
    private Date vipStartTime;
    private Date vipEndTime;
    //优惠置顶剩余小时数
    private int couponNum;

    public static UserInfo objectFromData(String str) {

        return new Gson().fromJson(str, UserInfo.class);
    }

    public int getCouponNum() {
        return couponNum;
    }
    public void setCouponNum(int couponNum) {
        this.couponNum = couponNum;
    }
    public int getAccountType() {
        return accountType;
    }

    public void setAccountType(int accountType) {
        this.accountType = accountType;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getIMSign() {
        return IMSign;
    }

    public void setIMSign(String IMSign) {
        this.IMSign = IMSign;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWxOpenId() {
        return wxOpenId;
    }

    public void setWxOpenId(String wxOpenId) {
        this.wxOpenId = wxOpenId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getZfbAccount() {
        return zfbAccount;
    }

    public void setZfbAccount(String zfbAccount) {
        this.zfbAccount = zfbAccount;
    }

    public String getZfbName() {
        return zfbName;
    }

    public void setZfbName(String zfbName) {
        this.zfbName = zfbName;
    }

    public String getIdentityNum() {
        return identityNum;
    }

    public void setIdentityNum(String identityNum) {
        this.identityNum = identityNum;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getVipLevel() {
        return vipLevel;
    }

    public void setVipLevel(int vipLevel) {
        this.vipLevel = vipLevel;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getPayFlushCount() {
        return payFlushCount;
    }

    public void setPayFlushCount(int payFlushCount) {
        this.payFlushCount = payFlushCount;
    }

    public int getVipFlushCount() {
        return vipFlushCount;
    }

    public void setVipFlushCount(int vipFlushCount) {
        this.vipFlushCount = vipFlushCount;
    }

    public String getEarnMoney() {
        return earnMoney;
    }

    public void setEarnMoney(String earnMoney) {
        this.earnMoney = earnMoney;
    }

    public String getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(String payMoney) {
        this.payMoney = payMoney;
    }

    public String getCreditMoney() {
        return creditMoney;
    }

    public void setCreditMoney(String creditMoney) {
        this.creditMoney = creditMoney;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Date getVipStartTime() {
        return vipStartTime;
    }

    public void setVipStartTime(Date vipStartTime) {
        this.vipStartTime = vipStartTime;
    }

    public Date getVipEndTime() {
        return vipEndTime;
    }

    public void setVipEndTime(Date vipEndTime) {
        this.vipEndTime = vipEndTime;
    }
}
